home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir24
/
morse111.zip
/
MORSE.DOC
< prev
Wrap
Text File
|
1994-07-28
|
10KB
|
209 lines
Files included:
morse.doc this file.
morse.com executable morse program.
morse.asm assembly source for morse.com.
morse makefile for morse.com.
Morse.com is a TSR program which echoes screen output in morse code.
If no arguments are given, morse will start at 16 words per minute at
1000HZ. You can permanently change these default with the configure
option described later. Morse may also be started with command line
arguments as follows:
morse [c][s][H][frequency] [speed] [ratio] [weighting] [timing]
Frequency can range from 20 to 10,000HZ. Speed, weighting, and ratio
ranges from 3 to 100 words per minute.
weighting, Ratio and timing are described later. If the letter S is the
first character of the first argument, the Copyright message is skipped.
a C as the first argument will run the configure part of morse.com.
H will display a help message and then exit to dos.
Morse can also be run so it outputs a message and exits without staying
resident. If the first argument starts with a letter other than c, h, or s
the following digit is taken to be the starting argument of the output.
For example if you want to output a morse message at 25 words per minute
at 400HZ use the syntax
morse a3440 25 this is a morse message.
The 3 indicates the actual message starts with the third argument.
After morse is started, every character printed on the screen is echoed
in morse. Output to the screen will be much slower because the
character if first output in morse and then sent to the screen. The
following paragraphs describe the commands available in morse.
Pressing the ALT key during morse output tells morse to skip the current
line. Normal output resumes when you release the ALT key. If CLICKS
are on (see configuring morse later) a click is sounded whenever a new
line is encountered.
ALT-CTRL-D Removes morse.com from memory without rebooting. I recommend
this only be done while at the DOS prompt. If an error occurs, you
should reboot immediately.
<F1> You are prompted for speed in morse only. Enter the desired speed
and press <RETURN>
<F2> You are prompted in morse to enter frequency.
<F3> Toggles decimal mode. When active "DEC" is output in morse. In
this mode, all characters are output in decimal. For example A is
output as 65.
<F4> Toggles practice mode. In practice mode, all characters are
converted to uppercase and all punctuation marks except . / ? - are
ignored. If practice is off, lowercase characters are output at a lower
frequency and control A-Z are output one octave below uppercase
characters. Also, nonstandard morse punctuation characters are output.
<F5> Toggles hex mode. When active "HEX" is output. All characters are
output in hex, "A" would be output as 41.
<F6> Output entire cursor line.
<F7> Output current line from the cursor to the right.
<F8> Output cursor position and character for example L3 C15 q is sent
in morse indicating q is at line 3 column 15.
<F9> You are prompted in morse for a line A-Y. The indicated line will
be output in morse. For example J would output line 10.
<F10> is used as the first key for the following commands:
\ Toggles quiet mode. When active the morse character ...-.- is
output. All further morse output is suspended until quiet mode is
turned off. This is done by pressing shift alt and ctrl, or another F10
\..
F will sound a continuous tone. Pressing CTRL raises frequency and ALT
lowers frequency. Press any key to stop tone. The frequency is output
in morse.
S sweeps speed. A series of dashes is sounded. Increase
speed with the CTRL key and decrease it with the ALT key. Press any key
to exit. The speed in words per minute is output in morse.
K "TYPE" is output in morse. Any character typed will be sent in morse
but not echoed to the screen. Press <ESC> to exit.
T Timing. Morse attempts to determine your machine's clock speed using
interrupt 1ch. If the morse characters seem faster or slower than they
should be for a given speed, you may adjust the timing. To make the
change in timing permanent, you can use the configure option. The faster
your machine the higher the timing value you will need. For example on a
20MHZ 80386 a value of 65 is appropriate. On a 33MHZ 80486 an approximate
value of 170 should be used.
r sweep ratio (See ratio and weighting later)
w sweep weighting (See ratio and weighting later)
? Find mode. (See Find later)
INS "RVU" is output indicating review mode. This is used to examine the
screen. Pressing <ESC> will exit back to your application. The up down
right and left cursor keys work as expected. Home moves cursor to
upperleft corner of the screen. End moves cursor to the lower left.
Pageup moves cursor vertically to the top of the screen. Pagedown moves
cursor vertically to the bottom of the screen. CTRL-left moves to
previous word. CTRL-right moves to the next word. Typing A through Y
outputs that line.
Tab and Shift-Tab moves the cursor to the next or previous tab position.
Find is used to search the screen for a given string. Search is case
insensitibe. Enter the string to search for and press <RETURN>.
The search begins at the cursor position.
Ratio and Weighting
The ratio adjustment changes the speed of the dits compared to the dots.
Normally this is set to the proper value every time speed is set. It
may be set to a different value if you want to simulate an unusual
sending style. Weighting specifies separation between dits and dots.
Cunfiguring morse.
morse.com is divided into a resident portion and a transient portion.
When morse becomes resident the transient portion is discarded. The
transient portion contains the greeting screen message and the code to
initialize and install the resident part. It also includes code to
reconfigure the program. Run morse c to start configuration.
Sample configuration session:
BLINDOS/PC
Version 1.11
Copyright 1990-1994 by Randy Formenti N8KL
Morse configuration allows you to modify defaults
for frequency, speed, weighting, ratio, timing, practice and clicks.
The Morse default function keys and the morse translation table may also be
modified.
After configuration, MORSE may be run with these new defaults without command
line arguments.
Press <ESC> to abort or any other key to continue.
Enter frequency <20-10000> (Default is 1000)
Enter speed <3-100> (Default is 16)
Enter weighting <3-100> (Default is 16)
Enter ratio <3-100> (Default is 16)
Enter timing <0-32767> (Default is 0)
Do you want practice mode on <Y/N> (Default is NO)
Do you want clicks on? <Y/N> (Default is YES)
Choose from the following:
1 - F1 through F10
2 - CTRL F1 through CTRL F10
3 - SHIFT F1 through SHIFT F10
4 - ALT F1 through ALT F10
Enter your choice: 1
Do you want to modify the Morse translation table (Y/N)
If you have made changes you are asked if you want to write the new
configuration back to disk. If not, press <ESC> to abort and morse.com will
not be changed.
Morse.com must be in the current directory.
You are asked for a default frequency, speed ,weighting, ratio and timing.
Timing ranges from 0 to 32767. If set to 0
it is automatically initialized using interrupt 1ch whenever you run morse.
This ensures that morse will run approximately at the same speed on all
machines. If you are not satisfied with this value, a nonzero timing may be
entered.
Next you are asked if you want practice mode on. If you say yes, practice mode
will be on by default. Next you can indicate whether clicks should be on or
off. If on, a click is sounded every time a carriage return is encountered and
the ALT key is pressed.
The last option allows you to modify the morse translation table. Use
this option if you want to change the morse equivalent of a character. To
change a character, enter the character you want to changed. You are prompted
for the morse representation of the character using a period for dit and
a dash for a dot. For example the letter q would be represented as --.-
I have been told that some of my morse characters for punctuation are
incorrect. They were copied from my Zitex Ascii to Morse converter I used
to use to get output from my first computer in 1978. So feel free to make
the punctuation whatever you want.
Remember to make a backup copy of morse.com before configuration.
Notes:
Morse.com was written in MASM 5.1. It is a rewrite of a program I wrote
in Turbo Pascal a few years ago. Morse.com only uses 6K of memory when
resident. Remember that morse.com contains reconfiguration code and
a help message which are not kept after it becomes resident.
It is possible to make several copies of morse run at the same time.
Each morse.com can be set to its own speed and frequency. This may not
be very useful, but it illistrates how output can go from one copy of
morse to another and eventually to the screen. You should reboot your
system to remove multiple copies of morse.com.
Morse.com was written primarily for the blind or deaf-blind
computer user. It allows me to use a PC without a voice synthesizer.
I have decided to include the assembly source for morse.com. The only
restriction is that you cannot use this source to derive a program sold for
profit.
I welcome any constructive criticism. I realize that some of the source
is very good, some is bad and the rest might be ok. I am gradually going
through the code putting in more comments and looking for bugs.
Send bug reports or any improved source code to:
rcf@genrad.com.